package com.yanyi.music.service.impl;

import com.yanyi.music.dao.SongListMapper;
import com.yanyi.music.domain.SongList;
import com.yanyi.music.service.SongListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SongListServiceImpl implements SongListService {
    @Autowired
    private SongListMapper songListMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return songListMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SongList record) {
        return songListMapper.insert(record);
    }

    @Override
    public int insertSelective(SongList record) {
        return songListMapper.insertSelective(record);
    }

    @Override
    public SongList selectByPrimaryKey(Integer id) {
        return songListMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SongList record) {
        return songListMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(SongList record) {
        return songListMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(SongList record) {
        return songListMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<SongList> findAll(Map<String, Object> map) {
        return songListMapper.findAll(map);
    }
}
